package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.CwUserBlindBoxOrderMapper;
import com.ruoyi.system.domain.CwUserBlindBoxOrder;
import com.ruoyi.system.service.ICwUserBlindBoxOrderService;

/**
 * 盲盒订单Service业务层处理
 * 
 * @author hyx
 * @date 2024-11-22
 */
@Service
public class CwUserBlindBoxOrderServiceImpl implements ICwUserBlindBoxOrderService 
{
    @Autowired
    private CwUserBlindBoxOrderMapper cwUserBlindBoxOrderMapper;

    /**
     * 查询盲盒订单
     * 
     * @param orderId 盲盒订单主键
     * @return 盲盒订单
     */
    @Override
    public CwUserBlindBoxOrder selectCwUserBlindBoxOrderByOrderId(Long orderId)
    {
        return cwUserBlindBoxOrderMapper.selectCwUserBlindBoxOrderByOrderId(orderId);
    }

    /**
     * 查询盲盒订单列表
     * 
     * @param cwUserBlindBoxOrder 盲盒订单
     * @return 盲盒订单
     */
    @Override
    public List<CwUserBlindBoxOrder> selectCwUserBlindBoxOrderList(CwUserBlindBoxOrder cwUserBlindBoxOrder)
    {
        return cwUserBlindBoxOrderMapper.selectCwUserBlindBoxOrderList(cwUserBlindBoxOrder);
    }

    /**
     * 新增盲盒订单
     * 
     * @param cwUserBlindBoxOrder 盲盒订单
     * @return 结果
     */
    @Override
    public int insertCwUserBlindBoxOrder(CwUserBlindBoxOrder cwUserBlindBoxOrder)
    {
        return cwUserBlindBoxOrderMapper.insertCwUserBlindBoxOrder(cwUserBlindBoxOrder);
    }

    /**
     * 修改盲盒订单
     * 
     * @param cwUserBlindBoxOrder 盲盒订单
     * @return 结果
     */
    @Override
    public int updateCwUserBlindBoxOrder(CwUserBlindBoxOrder cwUserBlindBoxOrder)
    {
        return cwUserBlindBoxOrderMapper.updateCwUserBlindBoxOrder(cwUserBlindBoxOrder);
    }

    /**
     * 批量删除盲盒订单
     * 
     * @param orderIds 需要删除的盲盒订单主键
     * @return 结果
     */
    @Override
    public int deleteCwUserBlindBoxOrderByOrderIds(Long[] orderIds)
    {
        return cwUserBlindBoxOrderMapper.deleteCwUserBlindBoxOrderByOrderIds(orderIds);
    }

    /**
     * 删除盲盒订单信息
     * 
     * @param orderId 盲盒订单主键
     * @return 结果
     */
    @Override
    public int deleteCwUserBlindBoxOrderByOrderId(Long orderId)
    {
        return cwUserBlindBoxOrderMapper.deleteCwUserBlindBoxOrderByOrderId(orderId);
    }
}
